#-------------------------------------------------
#
# Project created by QtCreator 2012-09-08T18:07:45
#
#-------------------------------------------------

QT       += network

QT       -= gui

TARGET = DataBusServer
TEMPLATE = lib
VERSION = 0.0.1

DEFINES += DATABUS_LIBRARY

SOURCES += src/Common/Common.cpp \
    src/Common/Packet.cpp \
    src/Common/PacketHeader.cpp \
    src/Common/PacketParser.cpp \
    src/Common/PacketPayload.cpp \
    src/Common/PingRequestPacket.cpp \
    src/Common/PingResponsePacket.cpp \
    src/Common/RegisterClientRequestPacket.cpp \
    src/Common/RegisterClientResponsePacket.cpp \
    src/Common/GetClientListResponsePacket.cpp \
    src/Common/GetClientStatusRequestPacket.cpp \
    src/Common/GetClientStatusResponsePacket.cpp \
    src/Common/Value.cpp \
    src/Server/Client.cpp \
    src/Server/Server.cpp

HEADERS += inc/DataBus/Common/Common.h \
    inc/DataBus/Common/Packet.h \
    inc/DataBus/Common/PacketHeader.h \
    inc/DataBus/Common/PacketParser.h \
    inc/DataBus/Common/PacketPayload.h \
    inc/DataBus/Common/PingRequestPacket.h \
    inc/DataBus/Common/PingResponsePacket.h \
    inc/DataBus/Common/RegisterClientRequestPacket.h \
    inc/DataBus/Common/RegisterClientResponsePacket.h \
    inc/DataBus/Common/GetClientListResponsePacket.h \
    inc/DataBus/Common/GetClientStatusRequestPacket.h \
    inc/DataBus/Common/GetClientStatusResponsePacket.h \
    inc/DataBus/Common/Value.h \
    inc/DataBus/Server/Client.h \
    inc/DataBus/Server/Server.h

INCLUDEPATH += inc

# Install library
target.path = $$PWD/../lib
INSTALLS += target

# Install headers
commonHeaders.path = $$PWD/../headers/DataBus/Common
commonHeaders.files = inc/DataBus/Common/Common.h \
    inc/DataBus/Common/Packet.h \
    inc/DataBus/Common/PacketHeader.h \
    inc/DataBus/Common/PacketParser.h \
    inc/DataBus/Common/PacketPayload.h \
    inc/DataBus/Common/PingRequestPacket.h \
    inc/DataBus/Common/PingResponsePacket.h \
    inc/DataBus/Common/RegisterClientRequestPacket.h \
    inc/DataBus/Common/RegisterClientResponsePacket.h \
    inc/DataBus/Common/GetClientListResponsePacket.h \
    inc/DataBus/Common/GetClientStatusRequestPacket.h \
    inc/DataBus/Common/GetClientStatusResponsePacket.h \
    inc/DataBus/Common/Value.h

serverHeaders.path = $$PWD/../headers/DataBus/Server
serverHeaders.files = inc/DataBus/Server/Client.h \
    inc/DataBus/Server/Server.h

INSTALLS += commonHeaders serverHeaders
